package com.expense.common.constant;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PubDataConst {

    //公共数据类型通用
    public static final Integer TYPE_FORM_CATEGORY = 100;             //单据类型
    public static final Integer TYPE_PROJECT_DUTIES = 110;            //项目成员职务
    public static final Integer TYPE_INVOICE_TYPE = 120;            //发票类型
    public static final Integer TYPE_INVOICE_CONTENT = 121;            //发票明细,费用类型
    public static final Integer TYPE_REGION = 130;            //学校所在区域
    public static final Integer TYPE_FIELD_USAGE = 140;            //场地用途
    public static final Integer TYPE_WF_USAGE = 150;            //工作流用途
    public static final Integer TYPE_ONOFF_ONLINE_COST = 160;            // 是否开启在线结算


    public static List<Map<String,Object>> getDataType(){
        List<Map<String,Object>> result = new ArrayList<>();
        Map<String,Object> map = new HashMap<>();
        map.put("id",TYPE_FORM_CATEGORY);
        map.put("name","单据类型");
        result.add(map);
        map = new HashMap<>();
        map.put("id",TYPE_PROJECT_DUTIES);
        map.put("name","项目成员职务");
        result.add(map);
        map = new HashMap<>();
        map.put("id",TYPE_INVOICE_TYPE);
        map.put("name","发票类型");
        result.add(map);
        map = new HashMap<>();
        map.put("id",TYPE_INVOICE_CONTENT);
        map.put("name","发票明细");
        result.add(map);
        map = new HashMap<>();
        map.put("id",TYPE_REGION);
        map.put("name","区域");
        result.add(map);
        map = new HashMap<>();
        map.put("id",TYPE_FIELD_USAGE);
        map.put("name","场地用途");
        result.add(map);
        map = new HashMap<>();
        map.put("id",TYPE_WF_USAGE);
        map.put("name","工作流用途");
        result.add(map);
        map = new HashMap<>();
        map.put("id",TYPE_ONOFF_ONLINE_COST);
        map.put("name","在线结算开关");
        map.put("type","page");
        result.add(map);
        return result;
    }





    //待办事项 -- 事件类型
    public static final Integer TYPE_TODO_APPLY = 1;         //报销申请
    public static final Integer TYPE_TODO_MESSAGE = 2;         //待办消息
    public static final Integer TYPE_TODO_SYSTEM_JOB = 3;         //系统定时器



    //定时任务 -- 任务编号
    public static final Integer TYPE_JOB_APPLY_APPROVER_ONLINE = 110120119;         //报销申请审批人上岗检查
    public static final Integer TYPE_JOB_OPERATION_LOG_FULL_CLEAR = 119120110;         //操作日志满载,清理


    //报销项目 分组
    public static final Integer TYPE_COST_GROUP_DEFAULT = 10;
    public static final Integer TYPE_COST_GROUP_TAX = 11;

    // 登录角色 类型
    public static final String TYPE_LOGIN_WX_USER = "WX_USER";
    public static final String TYPE_LOGIN_ADMIN_USER = "ADMIN_USER";

}